import request from "@/utils/request";
import pyRequest from "@/utils/pyrequest";

export function getFile(query) {
  return request({
    url: "/ufs/file",
    method: "get",
    params: query,
  });
}

export function downloadFile(id) {
  return request({
    url: "/well/download/" + id,
    method: "get",
  });
}

export function exportFile(query) {
  return request({
    url: "/design/schemes/export",
    method: "get",
    params: query,
  });
}

export function upFile(data) {
  return request({
    url: "/design/schemes/charts",
    method: "post",
    data: data,
  });
}
// 打捞方案文件上传
export function salvageFile(data) {
  return request({
    url: "/salvage/schemes/charts",
    method: "post",
    data: data,
  });
}